<template>
  <div class="table-container">
    <div class="title">
      {{ title }}
    </div>

    <div class="table-content">
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: () => ''
    }
  }
};
</script>

<style lang="scss" scoped>
.table-container {
  .title {
    font-size: $font-size-lg;
    margin: $margin-sm 0 $margin-base 0;
    font-weight: bold;
  }
  .table-content {
    background-color: $white;
    box-shadow: 0px 0px 20px 8px rgba(241, 241, 241, 0.5);
    border-radius: $b-radius-md;
    padding: $padding-sm;
  }

  @media (max-width: $screen-md) {
    .table-content {
      padding: $padding-xs;
    }
  }
}
</style>
